package org.easy.system.manage.dao;

import java.util.List;

import org.easy.system.manage.dto.UserQueryParam;
import org.easy.system.manage.entity.SysUser;

public interface SysUserMapper {
	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int deleteByPrimaryKey(Long userId);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int insert(SysUser record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int insertSelective(SysUser record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	SysUser selectByPrimaryKey(Long userId);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int updateByPrimaryKeySelective(SysUser record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int updateByPrimaryKey(SysUser record);

	/**
	 * 根据登录名查询用户
	 * 
	 * @param loginName
	 * @return
	 */
	SysUser selectByLoginName(String loginName);

	/**
	 * 分页查询用户
	 * 
	 * @param queryParam
	 * @return
	 */
	List<SysUser> queryByPage(UserQueryParam queryParam);
}